package work.mediway.bi.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
  *@version
  *@description      
  *@author          bovane <bovane.ch@gmail.com>
  *@create          2023-06-16 11:01
  */

/**
 * BI设计模板
 */
@ApiModel(description = "BI设计模板")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_design_template")
public class DesignTemplate {
    /**
     * 模板ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "模板ID")
    private Integer id;

    /**
     * 模版代码(UUID)
     */
    @TableField(value = "template_code")
    @ApiModelProperty(value = "模版代码(UUID)", required = true)
    private String templateCode;

    /**
     * 模板名称
     */
    @TableField(value = "template_name")
    @ApiModelProperty(value = "模板名称")
    private String templateName;

    /**
     * 模板名称
     */
    @TableField(value = "template_desc")
    @ApiModelProperty(value = "模板名称")
    private String templateDesc;

    /**
     * 是否启用
     */
    @TableField(value = "is_actived")
    @ApiModelProperty(value = "是否启用")
    private Boolean actived;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 原始JSON
     */
    @TableField(value = "raw_json")
    @ApiModelProperty(value = "原始JSON")
    private String rawJson;

    /**
     * 模板分组
     */
    @TableField(value = "template_group")
    @ApiModelProperty(value = "模板分组")
    private String templateGroup;

    /**
     * 模板图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(value = "模板图标")
    private String icon;
}